home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / dskut / qic02_11.zip / MT.DOC < prev    next >
Text File  |  1993-05-03  |  3KB  |  76 lines

  1.  
  2.  
  3.  
  4. MT(1)                    USER COMMANDS                      MT(1)
  5.  
  6.  
  7.  
  8. NAME
  9.      mt - magnetic tape control
  10.  
  11. SYNOPSIS
  12.      mt [ -f tapename ] command [ count ]
  13.  
  14. DESCRIPTION
  15.      mt sends commands to a magnetic tape drive.  If tapename  is
  16.      not  specified,  the  environment variable TAPE is used.  If
  17.      TAPE  does  not  exist,  mt  uses  the  device   TAPE$.
  18.      tapename  refers  to a raw tape device.  By default, mt per-
  19.      forms the requested operation once;  multiple operations may
  20.      be performed by specifying count.
  21.  
  22.      The available commands are listed below.  Only as many char-
  23.      acters  as  are required to uniquely identify a command need
  24.      be specified.
  25.  
  26.      mt returns a 0 exit status when the operation(s)  were  suc-
  27.      cessful,  1  if  the  command  was unrecognized or if mt was
  28.      unable to open the specified tape drive, and 2 if an  opera-
  29.      tion failed.
  30.  
  31. OPTIONS
  32.      eof, weof    Write count EOF marks at the  current  position
  33.                   on the tape.
  34.  
  35.      fsf          Forward space over count EOF marks. The tape is
  36.                   positioned on the first block of the file.
  37.  
  38.      fsr          Forward space count records.
  39.  
  40.      bsf          Back space over count EOF marks.  The  tape  is
  41.                   positioned on the beginning-of-tape side of the
  42.                   EOF mark.
  43.  
  44.      bsr          Back space count records.
  45.  
  46.      nbsf         Back space count files.  The tape is positioned
  47.                   on  the  first  block  of  the  file.   This is
  48.                   equivalent to count+1  bsf's  followed  by  one
  49.                   fsf.
  50.  
  51.      asf          Absolute space to count file number.   This  is
  52.                   equivalent to a rewind followed by a fsf count.
  53.  
  54.      For the following commands, count is ignored:
  55.  
  56.      eom          Space to the end of recorded media on the tape.
  57.                   This  is useful for appending files onto previ-
  58.                   ously written tapes.
  59.  
  60.      rewind       Rewind the tape.
  61.  
  62.      offline, rewoffl
  63.                   Rewind the tape and, if appropriate,  take  the
  64.                   drive unit off-line by unloading the tape.
  65.  
  66.      status       Print status information about the tape unit.
  67.  
  68.      retension    Rewind the cartridge tape completely, then wind
  69.                   it  forward  to the end of the reel and back to
  70.                   beginning-of-tape to smooth out tape tension.
  71.  
  72.      erase        Erase the entire tape.
  73.  
  74.      reset        Reset the tape drive.
  75.  
  76.